<form nz-form [formGroup]="form">
  <nz-form-item>
    <nz-form-label [nzSpan]="6" nzFor="name" nzRequired>字典名称</nz-form-label>
    <nz-form-control [nzSpan]="14">
      <input nz-input formControlName="name" />
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSpan]="6" nzFor="code" nzRequired>字典编码</nz-form-label>
    <nz-form-control [nzSpan]="14">
      <input nz-input formControlName="code" />
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSpan]="6" nzFor="isRun" nzRequired>是否开启</nz-form-label>
    <nz-form-control [nzSpan]="14">
      <nz-select formControlName="isRun" [nzAllowClear]="true">
        <nz-option *ngFor="let item of yesOrNo" [nzValue]="item.key" [nzLabel]="item.value"></nz-option>
      </nz-select>
    </nz-form-control>
  </nz-form-item>
</form>

<div class="modal-footer">
  <button nz-button nzType="default" (click)="close()"><i nz-icon [nzIconfont]="'pets_close'"></i>关闭</button>
  <button nz-button nzType="primary" (click)="save()"><i nz-icon [nzIconfont]="'pets_select'"></i>确认</button>
</div>
